11. GPRS Commands > 11.12 AT+CGREG   GPRS Network Registration Status

11.12
AT+CGREG   GPRS Network Registration Status
AT+CGREG write command enables presentation of URC "+CGREG: <stat>" when <n>=1 and ME's GPRS net­work registration status changes, or URC "+CGREG: <stat>, <lac>, <ci>" when <n>=2 and the current net­work cell changes.
AT+CGREG read command queries the current URC presentation status and <stat> which shows whether the network has currently indicated the registration of the ME. Location information elements <lac> and <ci> are returned only if <n>=2 and ME is registered to the network.
Syntax
Test Command  
Response(s)
+CGREG: (list of supported <n>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 
GSM 07.07

Unsolicited Result Codes
URC 1
+CGREG: <stat>
Indicates a change in the ME's GPRS network registration status.
URC 2
+CGREG: <stat>, <lac>, <ci>
Indicates a change in the ME's GPRS network registration status or a change of the network cell including location information.

Parameter Description
 
<n>(num)
0(&F)(P)
Disable network registration unsolicited result code
1
Enable network registration URC "+CGREG: <stat>"
2
Enable network registration URC "+CGREG: <stat>, <lac>, <ci>"
 
<stat>(num)
0
Not registered, ME is not currently searching an operator to register to. The ME is in GMM state GMM-NULL or GMM-DEREGISTERED-INITIATED.
GPRS service is disabled, the ME is allowed to attach to GPRS if requested by the user.
1
Registered, home network. The ME is in GMM state GMM-REGISTERED or GMM-ROUTING-AREA-UPDATING-INITIATED INITIATED on the home PLMN
2
Not registered, but ME is currently trying to attach or searching an operator to register to. The ME is in GMM state GMM-DEREGISTERED or GMM-REGIS­TERED-INITIATED. The GPRS service is enabled, but an allowable PLMN is currently not available. The ME will start a GPRS attach as soon as an allow­able PLMN is available.
3
Registration denied. The ME is in GMM state GMM-NULL. The GPRS service is disabled, the ME is not allowed to attach to GPRS if requested by the user.
4
Unknown
5
Registered, roaming. The ME is in GMM state GMM-REGISTERED or GMM-ROUTING-AREA-UPDATING-INITIATED on a visited PLMN.
 
<lac>(str)
Two byte location area code in hexadecimal format.
 
<ci>(str)
Two byte cell ID in hexadecimal format.


Note
•
When the module is GPRS attached and a PLMN reselection occurs to a non-GPRS network or to a network where the SIM is not subscribed to for using GPRS, the resulting GMM (GPRS mobility management) state according to GSM 24.008 is REGISTERED/NO CELL, meaning that the read command will still show <stat>=1 or <stat>=5.